<?php /* Smarty version 2.6.18, created on 2010-03-15 02:28:57
         compiled from dataOMBan_popup.tpl */ ?>
<script type="text/javascript">	
	var calendar = new ekimo_calendar("f_show","f_date","Date From", "calendar");
	var calendar1 = new ekimo_calendar("t_show","t_date","Date To", "calendar1");
</script>
<form name="mainForm" method="POST" id="mainForm" action="/admin/dataOMAddBan" enctype="multipart/form-data">
<div id="drag_bar" class="blue"><h2 class="dotted">Organism Ban Details:</h2></div><br>
<div width="100%">
	<input type="hidden" name="organism_id" value="<?php echo $this->_tpl_vars['organism_id']; ?>
">
	<input type="hidden" name="hid" value="<?php echo $this->_tpl_vars['ban']['id']; ?>
">
	<table border="0" width="100%">
		<tr>
			<td>Organization:</td>
			<td>
				<select name="organization">
				<?php $_from = $this->_tpl_vars['orgs']; if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array'); }if (count($_from)):
    foreach ($_from as $this->_tpl_vars['org']):
?>
					<option value="<?php echo $this->_tpl_vars['org']['id']; ?>
"
					<?php if ($this->_tpl_vars['org']['id'] == $this->_tpl_vars['ban']['org_id']): ?> selected <?php endif; ?>
					><?php echo $this->_tpl_vars['org']['name']; ?>
</option>
				<?php endforeach; endif; unset($_from); ?>
				</select>
			</td>
		</tr>
		<tr>
			<td>Date From:</td>
			<td>
				<label for="f_date" class="yui-skin-sam">
					<input type="text" id="f_date" name="f_date" value="<?php echo $this->_tpl_vars['ban']['date_from']; ?>
">
					<a href="javascript:void(0);" id="f_show">
						<img alt="Calendar" src="/app/default/www/images/calendar.jpg" border="0"/>
					</a>
					<div id="calendar" style="display:none;position:absolute"></div> 
				</label>
			</td>
		</tr>
		<tr>
			<td>Date To:</td>
			<td>
				<label for="t_date" class="yui-skin-sam">
					<input type="text" id="t_date" name="t_date" value="<?php echo $this->_tpl_vars['ban']['date_to']; ?>
">
					<a href="javascript:void(0);" id="t_show">
						<img alt="Calendar" src="/app/default/www/images/calendar.jpg" border="0"/>
					</a>
					<div id="calendar1" style="display:none;position:absolute"></div> 
				</label>
			</td>
		</tr>
		<tr>
			<td>Message</td>
			<td>
				<textarea name="message"><?php echo $this->_tpl_vars['ban']['message']; ?>
</textarea>
			</td>
		</tr>
	</table>
	<br><hr>
<input type="submit" value="Save">
<input type="button" value="Cancel" onclick="popup('popUpDiv');">			
</div>
</form>
<?php echo '
<script language="javascript">
 function clos(id){
	window.location="/admin/dataOMEditRefresh/id/"+id;
 }
</script>
'; ?>